<?php $this->load->view('left'); ?>
<?php 
echo $cate_name['type'];
echo "<br/>";
?>

<?php 
if(empty($page_result))
{
	echo "No Records";
}
else 
{
	echo "<table>";
	echo "<tr><td>App ID</td><td>Book Name</a></td><td>Author</td><td>Publisher</td><td>Pub Date</td><td>Price</td><td>Cover</td><td>Edit\t Delete</td></tr>";
	foreach ($page_result as $msg)
	{
	 		echo "<tr><td>".$msg['prod_id']."</td><td><a target=\"_blank\" href=\"".site_url('manage/get_book_message/'.$msg['b_id'])."\">".$msg['name']."</a></td><td>".$msg['author']."</td><td>".$msg['publisher']."</td><td>".$msg['pub_date']."</td><td>".$msg['price']."</td><td><img src=\"".base_url().$msg['pic']."\" /></td><td>"."<a target=\"_parent\" href=\"".site_url('manage/edit_book').'/'.$msg['b_id']."\">Edit</a>"."\t<a href=\"".site_url('manage/del_book/'.$cate_id.'/'.$start.'/'.$msg['b_id'])."\">Delete</a></td></tr>";
		
	}
	
}
?>
</table>
<?php echo $page_link;?>
<?php $this->load->view('right'); ?>
